package com.cipe.cmrs.model;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author Incepio
 * 
 */
@Entity
@Table(name = "useractionalertschanges")
@SuppressWarnings("serial")
public class Useractionalertschanges extends BaseEntity {
	
	
	/**
	 * Attribute markedreadorunread.
	 */
	private Boolean markedreadorunread;
	
	/**
	 * Attribute dateread.
	 */
	private Timestamp dateread;
	
	/**
	 * Attribute actionaltertchangenotifications t
	 *//* To Imporve performnace
    @ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "actionalertchangenotificationsid")
	 private Actionaltertchangenotifications actionaltertchangenotifications;*/	
	@Column(name="actionalertchangenotificationsid") 
	int chnagenotificationid;
	/**
	 * Attribute userinfo
	 */
	@ManyToOne
	@JoinColumn(name = "readby")
	private User user;	

	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	/**
	 * @return markedreadorunread
	 */
	
		public Boolean getMarkedreadorunread() {
		return markedreadorunread;
	}

	/**
	 * @param markedreadorunread new value for markedreadorunread 
	 */
	public void setMarkedreadorunread(Boolean markedreadorunread) {
		this.markedreadorunread = markedreadorunread;
	}
	
	/**
	 * @return dateread
	 */
	
		public Timestamp getDateread() {
		return dateread;
	}

	/**
	 * @param dateread new value for dateread 
	 */
	public void setDateread(Timestamp dateread) {
		this.dateread = dateread;
	}

	public int getChnagenotificationid() {
		return chnagenotificationid;
	}

	public void setChnagenotificationid(int chnagenotificationid) {
		this.chnagenotificationid = chnagenotificationid;
	}
	
	/**
	 * get actionaltertchangenotifications
	 */
	
	

}